package com.hcandtx.Bms.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class ShoppingTrolley {

	
	private int id;
	private int proId;
	
	private int userId;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date addDate;
	
	private double price;
	private int quantity;
	private String ProductName;
	
	
	public ShoppingTrolley() {
		this.addDate=new Date();
	}


	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	public int getProId() {
		return proId;
	}


	public void setProId(int proId) {
		this.proId = proId;
	}


	public int getUserId() {
		return userId;
	}


	public void setUserId(int userId) {
		this.userId = userId;
	}


	public Date getAddDate() {
		return addDate;
	}


	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}


	public double getPrice() {
		return price;
	}


	public void setPrice(double price) {
		this.price = price;
	}


	public int getQuantity() {
		return quantity;
	}


	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}


	public String getProductName() {
		return ProductName;
	}


	public void setProductName(String productName) {
		ProductName = productName;
	}


	@Override
	public String toString() {
		return "ShoppingTrolley [id=" + id + ", proId=" + proId + ", userId=" + userId + ", addDate=" + addDate
				+ ", price=" + price + ", quantity=" + quantity + ", ProductName=" + ProductName + "]";
	}
	
	
	
	
	
	
	
}
